package pojos;

import javax.persistence.*;

@Entity
@Table(name="t_clients")
public class Client {

	private long id_client;
	private String nom;
	private String prenom;
	private Adresse adresse ;
	private String telephone;
	private String mail;
	private String login;
	private String mot_de_passe;
	private long panier;
	

	public Client(){
		
	}



	public long getPanier() {
		return panier;
	}



	public void setPanier(long panier) {
		this.panier = panier;
	}


	@OneToOne
	@JoinColumn(name="id_adresse")
	public Adresse getAdresse() {
		return adresse;
	}



	public void setAdresse(Adresse adresse) {
		this.adresse = adresse;
	}



	@Id
	public long getId_client() {
		return id_client;
	}
	public void setId_client(long id_client) {
		this.id_client = id_client;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getMot_de_passe() {
		return mot_de_passe;
	}
	public void setMot_de_passe(String mot_de_passe) {
		this.mot_de_passe = mot_de_passe;
	}
	
	
	
}
